Goal:
Using ssh to log into the bandit game.
My Solution:
To achieve the goal, I consulted ' man ssh '. Then I found out the basic is ' ssh username@remote_host '. After understanding this, I simply used ' ssh bandit0@bandit.labs.overthewire.org '. However, an error message jumped out. The issue was that the default port for SSH is 22, but the Bandit game informed me that the correct port is 2220. So i used the ' - p ' parameter to specify my port, which is 2220. After typing following command ' ssh bandit0@bandit.labs.overthewire.org -p 2220 ' and entering the password ' bandit0 ', I successfully connected to the Bandit server.
Command:
ssh - Secure Shell Protocol
ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface] [-b bind_address] [-c cipher_spec] [-D [bind_address:]port] [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11] [-i identity_file] [-J destination] [-L address] [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] [-Q query_option] [-R address] [-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]] destination [command [argument ...]]
SSH is an encrypted protocol that allows users to connect to their remote servers securely. With SSH, user can access, control, and modify their servers. Compared to Telnet, which is unecrypted, SSH provides a safer way to communicate.
Other Note
As we know, SSH facilitates encrypted communication. However, a question arises: What cryptographic techniques does it use? Here are some simple notes on encryption.
Symmeteric Encryption, also known as 'shared key' or 'shared secret key' encryption, utilizes a single key for both encryption and decryption. SSH employs this type of encryption. The process of creating a symmetric encryption key is facilitated by a 'key exchange algorithm.' Some famous symmetric encryption algorithms include AES.
Asymmetric Encryption, unlike symmetric encryption, utilizes two keys: a public key and a private key. The public key is used for encryption, while the private key is used for decryption.
References
man ssh
https://www.hostinger.com/tutorials/ssh-tutorial-how-does-ssh-work
ChatGPT